package designpattern.demo.creational.singletonpattern;

public class Main {
    public static void main(String[] args) {

        SingleHungry sh = SingleHungry.getInstance();
        SingleHungry sh2 = SingleHungry.getInstance();
        System.out.println("sh==sh2?  " + (sh==sh2));


        SingleLazy sl = SingleLazy.getInstance();
        SingleLazy sl2 = SingleLazy.getInstance();

        System.out.println("sl==sl2?  " + (sl==sl2));


    }
}
